package com.hxjr.dialog.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.hxjr.dialog.R;

import java.util.List;

public class SelectItemsAdapter extends SimpleBaseAdapter<String>
{

	public SelectItemsAdapter(Context context, List<String> data)
	{
		super(context, data);
	}

	@Override
	public int getItemResource()
	{
		return R.layout.item_select;
	}

	@Override
	public View getItemView(int position, View convertView,
			ViewHolder holder)
	{

		TextView tv = holder.getView(R.id.tv_item_select);
		tv.setText((String) getItem(position));
		return convertView;
	}

}
